<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core" xmlns:sec="http://www.springframework.org/security/facelets/tags">
		<!-- MENU -->
		<ul>
			<!-- GUEST -->
			<sec:ifAllGranted roles="ROLE_GUEST">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="cadastraFase.jsf">
				        <h:outputText value="#{msg.projetoTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			<!-- USER -->
			<sec:ifAllGranted roles="ROLE_USER">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="cadastraFase.jsf">
				        <h:outputText value="#{msg.tarefaTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			<!-- GUEST -->
			<sec:ifAllGranted roles="ROLE_GUEST">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="cadastraFase.jsf">
				        <h:outputText value="#{msg.relatorioTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			<!-- USER -->
			<sec:ifAllGranted roles="ROLE_USER">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="cadastraFase.jsf">
				        <h:outputText value="#{msg.cronogramaTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			
			<!-- ADMIN -->
			<sec:ifAllGranted roles="ROLE_ADMIN">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="pessoaMBForm.jsf">
				        <h:outputText value="#{msg.usuarioTitulo}"></h:outputText>
				    </h:outputLink>
				</li>

				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="instituicaoMBForm.jsf">
				        <h:outputText value="#{msg.instituicao}"></h:outputText>
				    </h:outputLink>
				</li>
				
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="testeMB.jsf">
				        <h:outputText value="#{msg.empresaTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="perifericoMBForm.jsf">
				        <h:outputText value="#{msg.perifericoTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			
			<!-- USER -->
			<sec:ifAllGranted roles="ROLE_USER">
				<li>
				    <h:graphicImage value="/images/link-botao.jpg" />
				</li>
				<li>
				    <h:outputLink value="cadastraFase.jsf">
				        <h:outputText value="#{msg.ajudaTitulo}"></h:outputText>
				    </h:outputLink>
				</li>
			</sec:ifAllGranted>
			<div id="sair">
				<a href="logout.jsp">Sair</a>
			</div>
		</ul>
	</html>